﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Metadata.Builders;
using PMS.XCMG.Util;

namespace PMS.XCMG.Entity
{
    /// <summary>
    /// 操作权限定义
    /// </summary>
    public partial class Sys_Action : BusEntity
    {
        /// <summary>
        /// 所属菜单
        /// </summary>
        public string MenuId { get; set; }
        /// <summary>
        /// 动作名称
        /// </summary>
        public string Name { get; set; }
        /// <summary>
        /// 动作编码
        /// </summary>
        public string Code { get; set; }
    }

    /// <summary>
    /// 操作权限定义
    /// </summary>
    public partial class Sys_Action : BusEntity
    {
        /// <summary>
        /// 所属菜单
        /// </summary>
        public Sys_Menu Menu { get; set; }
    }

    /// <summary>
    /// 实体配置
    /// OnModelCreating
    /// </summary>
    public class Sys_ActionTypeConfig : BusEntityTypeConfig<Sys_Action>, IEntityTypeConfiguration<Sys_Action>
    {
        public override void Configure(EntityTypeBuilder<Sys_Action> builder)
        {
            base.Configure(builder);

            #region 主外键关系
            builder.HasOne(p => p.Menu).WithMany(m=>m.Actions).HasForeignKey(p => p.MenuId);
            #endregion

            #region 字段属性:最大长度,是否必需,默认值
            builder.Property(p => p.MenuId).HasMaxLength(EntityDefinition.DefSmallColLen).IsRequired();
            builder.Property(p => p.Name).HasMaxLength(EntityDefinition.DefMiddleColLen).IsRequired();
            builder.Property(p => p.Code).HasMaxLength(EntityDefinition.DefSmallColLen).IsRequired();
            #endregion

            #region 备注
            builder.HasComment("操作权限定义");
            builder.Property(p => p.MenuId).HasComment("所属菜单");
            builder.Property(p => p.Name).HasComment("动作名称");
            builder.Property(p => p.Code).HasComment("动作编码");
            #endregion

            #region 种子数据

            #region 生产调度
            builder.HasData(new Sys_Action() { Id = "40101", MenuId = "401", Name = "新增", Code = "Add", CreateUserId = "1", ModifyUserId = "1" });
            builder.HasData(new Sys_Action() { Id = "40102", MenuId = "401", Name = "删除", Code = "Delete", CreateUserId = "1", ModifyUserId = "1" });
            builder.HasData(new Sys_Action() { Id = "40103", MenuId = "401", Name = "修改", Code = "Update", CreateUserId = "1", ModifyUserId = "1" });
            builder.HasData(new Sys_Action() { Id = "40104", MenuId = "401", Name = "查询", Code = "Query", CreateUserId = "1", ModifyUserId = "1" });
            builder.HasData(new Sys_Action() { Id = "40105", MenuId = "401", Name = "查看", Code = "Get", CreateUserId = "1", ModifyUserId = "1" });

            builder.HasData(new Sys_Action() { Id = "40201", MenuId = "402", Name = "新增", Code = "Add", CreateUserId = "1", ModifyUserId = "1" });
            builder.HasData(new Sys_Action() { Id = "40202", MenuId = "402", Name = "删除", Code = "Delete", CreateUserId = "1", ModifyUserId = "1" });
            builder.HasData(new Sys_Action() { Id = "40203", MenuId = "402", Name = "修改", Code = "Update", CreateUserId = "1", ModifyUserId = "1" });
            builder.HasData(new Sys_Action() { Id = "40204", MenuId = "402", Name = "查询", Code = "Query", CreateUserId = "1", ModifyUserId = "1" });
            builder.HasData(new Sys_Action() { Id = "40205", MenuId = "402", Name = "查看", Code = "Get", CreateUserId = "1", ModifyUserId = "1" });

            builder.HasData(new Sys_Action() { Id = "40301", MenuId = "403", Name = "新增", Code = "Add", CreateUserId = "1", ModifyUserId = "1" });
            builder.HasData(new Sys_Action() { Id = "40302", MenuId = "403", Name = "删除", Code = "Delete", CreateUserId = "1", ModifyUserId = "1" });
            builder.HasData(new Sys_Action() { Id = "40303", MenuId = "403", Name = "修改", Code = "Update", CreateUserId = "1", ModifyUserId = "1" });
            builder.HasData(new Sys_Action() { Id = "40304", MenuId = "403", Name = "查询", Code = "Query", CreateUserId = "1", ModifyUserId = "1" });
            builder.HasData(new Sys_Action() { Id = "40305", MenuId = "403", Name = "查看", Code = "Get", CreateUserId = "1", ModifyUserId = "1" });

            builder.HasData(new Sys_Action() { Id = "40401", MenuId = "404", Name = "新增", Code = "Add", CreateUserId = "1", ModifyUserId = "1" });
            builder.HasData(new Sys_Action() { Id = "40402", MenuId = "404", Name = "删除", Code = "Delete", CreateUserId = "1", ModifyUserId = "1" });
            builder.HasData(new Sys_Action() { Id = "40403", MenuId = "404", Name = "修改", Code = "Update", CreateUserId = "1", ModifyUserId = "1" });
            builder.HasData(new Sys_Action() { Id = "40404", MenuId = "404", Name = "查询", Code = "Query", CreateUserId = "1", ModifyUserId = "1" });
            builder.HasData(new Sys_Action() { Id = "40405", MenuId = "404", Name = "查看", Code = "Get", CreateUserId = "1", ModifyUserId = "1" });
            #endregion

            #region 生产工艺
            builder.HasData(new Sys_Action() { Id = "50101", MenuId = "501", Name = "新增", Code = "Add", CreateUserId = "1", ModifyUserId = "1" });
            builder.HasData(new Sys_Action() { Id = "50102", MenuId = "501", Name = "删除", Code = "Delete", CreateUserId = "1", ModifyUserId = "1" });
            builder.HasData(new Sys_Action() { Id = "50103", MenuId = "501", Name = "修改", Code = "Update", CreateUserId = "1", ModifyUserId = "1" });
            builder.HasData(new Sys_Action() { Id = "50104", MenuId = "501", Name = "查询", Code = "Query", CreateUserId = "1", ModifyUserId = "1" });
            builder.HasData(new Sys_Action() { Id = "50105", MenuId = "501", Name = "查看", Code = "Get", CreateUserId = "1", ModifyUserId = "1" });

            builder.HasData(new Sys_Action() { Id = "50201", MenuId = "502", Name = "新增", Code = "Add", CreateUserId = "1", ModifyUserId = "1" });
            builder.HasData(new Sys_Action() { Id = "50202", MenuId = "502", Name = "删除", Code = "Delete", CreateUserId = "1", ModifyUserId = "1" });
            builder.HasData(new Sys_Action() { Id = "50203", MenuId = "502", Name = "修改", Code = "Update", CreateUserId = "1", ModifyUserId = "1" });
            builder.HasData(new Sys_Action() { Id = "50204", MenuId = "502", Name = "查询", Code = "Query", CreateUserId = "1", ModifyUserId = "1" });
            builder.HasData(new Sys_Action() { Id = "50205", MenuId = "502", Name = "查看", Code = "Get", CreateUserId = "1", ModifyUserId = "1" });

            builder.HasData(new Sys_Action() { Id = "50301", MenuId = "503", Name = "新增", Code = "Add", CreateUserId = "1", ModifyUserId = "1" });
            builder.HasData(new Sys_Action() { Id = "50302", MenuId = "503", Name = "删除", Code = "Delete", CreateUserId = "1", ModifyUserId = "1" });
            builder.HasData(new Sys_Action() { Id = "50303", MenuId = "503", Name = "修改", Code = "Update", CreateUserId = "1", ModifyUserId = "1" });
            builder.HasData(new Sys_Action() { Id = "50304", MenuId = "503", Name = "查询", Code = "Query", CreateUserId = "1", ModifyUserId = "1" });
            builder.HasData(new Sys_Action() { Id = "50305", MenuId = "503", Name = "查看", Code = "Get", CreateUserId = "1", ModifyUserId = "1" });

            builder.HasData(new Sys_Action() { Id = "50401", MenuId = "504", Name = "新增", Code = "Add", CreateUserId = "1", ModifyUserId = "1" });
            builder.HasData(new Sys_Action() { Id = "50402", MenuId = "504", Name = "删除", Code = "Delete", CreateUserId = "1", ModifyUserId = "1" });
            builder.HasData(new Sys_Action() { Id = "50403", MenuId = "504", Name = "修改", Code = "Update", CreateUserId = "1", ModifyUserId = "1" });
            builder.HasData(new Sys_Action() { Id = "50404", MenuId = "504", Name = "查询", Code = "Query", CreateUserId = "1", ModifyUserId = "1" });
            builder.HasData(new Sys_Action() { Id = "50405", MenuId = "504", Name = "查看", Code = "Get", CreateUserId = "1", ModifyUserId = "1" });

            builder.HasData(new Sys_Action() { Id = "50601", MenuId = "506", Name = "新增", Code = "Add", CreateUserId = "1", ModifyUserId = "1" });
            builder.HasData(new Sys_Action() { Id = "50602", MenuId = "506", Name = "删除", Code = "Delete", CreateUserId = "1", ModifyUserId = "1" });
            builder.HasData(new Sys_Action() { Id = "50603", MenuId = "506", Name = "修改", Code = "Update", CreateUserId = "1", ModifyUserId = "1" });
            builder.HasData(new Sys_Action() { Id = "50604", MenuId = "506", Name = "查询", Code = "Query", CreateUserId = "1", ModifyUserId = "1" });
            builder.HasData(new Sys_Action() { Id = "50605", MenuId = "506", Name = "查看", Code = "Get", CreateUserId = "1", ModifyUserId = "1" });
            #endregion

            # region 产线配置
            builder.HasData(new Sys_Action() { Id = "60101", MenuId = "601", Name = "新增", Code = "Add", CreateUserId = "1", ModifyUserId = "1" });
            builder.HasData(new Sys_Action() { Id = "60102", MenuId = "601", Name = "删除", Code = "Delete", CreateUserId = "1", ModifyUserId = "1" });
            builder.HasData(new Sys_Action() { Id = "60103", MenuId = "601", Name = "修改", Code = "Update", CreateUserId = "1", ModifyUserId = "1" });
            builder.HasData(new Sys_Action() { Id = "60104", MenuId = "601", Name = "查询", Code = "Query", CreateUserId = "1", ModifyUserId = "1" });
            builder.HasData(new Sys_Action() { Id = "60105", MenuId = "601", Name = "查看", Code = "Get", CreateUserId = "1", ModifyUserId = "1" });

            builder.HasData(new Sys_Action() { Id = "60201", MenuId = "602", Name = "新增", Code = "Add", CreateUserId = "1", ModifyUserId = "1" });
            builder.HasData(new Sys_Action() { Id = "60202", MenuId = "602", Name = "删除", Code = "Delete", CreateUserId = "1", ModifyUserId = "1" });
            builder.HasData(new Sys_Action() { Id = "60203", MenuId = "602", Name = "修改", Code = "Update", CreateUserId = "1", ModifyUserId = "1" });
            builder.HasData(new Sys_Action() { Id = "60204", MenuId = "602", Name = "查询", Code = "Query", CreateUserId = "1", ModifyUserId = "1" });
            builder.HasData(new Sys_Action() { Id = "60205", MenuId = "602", Name = "查看", Code = "Get", CreateUserId = "1", ModifyUserId = "1" });

            builder.HasData(new Sys_Action() { Id = "60301", MenuId = "603", Name = "新增", Code = "Add", CreateUserId = "1", ModifyUserId = "1" });
            builder.HasData(new Sys_Action() { Id = "60302", MenuId = "603", Name = "删除", Code = "Delete", CreateUserId = "1", ModifyUserId = "1" });
            builder.HasData(new Sys_Action() { Id = "60303", MenuId = "603", Name = "修改", Code = "Update", CreateUserId = "1", ModifyUserId = "1" });
            builder.HasData(new Sys_Action() { Id = "60304", MenuId = "603", Name = "查询", Code = "Query", CreateUserId = "1", ModifyUserId = "1" });
            builder.HasData(new Sys_Action() { Id = "60305", MenuId = "603", Name = "查看", Code = "Get", CreateUserId = "1", ModifyUserId = "1" });

            builder.HasData(new Sys_Action() { Id = "60401", MenuId = "604", Name = "新增", Code = "Add", CreateUserId = "1", ModifyUserId = "1" });
            builder.HasData(new Sys_Action() { Id = "60402", MenuId = "604", Name = "删除", Code = "Delete", CreateUserId = "1", ModifyUserId = "1" });
            builder.HasData(new Sys_Action() { Id = "60403", MenuId = "604", Name = "修改", Code = "Update", CreateUserId = "1", ModifyUserId = "1" });
            builder.HasData(new Sys_Action() { Id = "60404", MenuId = "604", Name = "查询", Code = "Query", CreateUserId = "1", ModifyUserId = "1" });
            builder.HasData(new Sys_Action() { Id = "60405", MenuId = "604", Name = "查看", Code = "Get", CreateUserId = "1", ModifyUserId = "1" });

            builder.HasData(new Sys_Action() { Id = "60501", MenuId = "605", Name = "新增", Code = "Add", CreateUserId = "1", ModifyUserId = "1" });
            builder.HasData(new Sys_Action() { Id = "60502", MenuId = "605", Name = "删除", Code = "Delete", CreateUserId = "1", ModifyUserId = "1" });
            builder.HasData(new Sys_Action() { Id = "60503", MenuId = "605", Name = "修改", Code = "Update", CreateUserId = "1", ModifyUserId = "1" });
            builder.HasData(new Sys_Action() { Id = "60504", MenuId = "605", Name = "查询", Code = "Query", CreateUserId = "1", ModifyUserId = "1" });
            builder.HasData(new Sys_Action() { Id = "60505", MenuId = "605", Name = "查看", Code = "Get", CreateUserId = "1", ModifyUserId = "1" });

            builder.HasData(new Sys_Action() { Id = "60601", MenuId = "606", Name = "新增", Code = "Add", CreateUserId = "1", ModifyUserId = "1" });
            builder.HasData(new Sys_Action() { Id = "60602", MenuId = "606", Name = "删除", Code = "Delete", CreateUserId = "1", ModifyUserId = "1" });
            builder.HasData(new Sys_Action() { Id = "60603", MenuId = "606", Name = "修改", Code = "Update", CreateUserId = "1", ModifyUserId = "1" });
            builder.HasData(new Sys_Action() { Id = "60604", MenuId = "606", Name = "查询", Code = "Query", CreateUserId = "1", ModifyUserId = "1" });
            builder.HasData(new Sys_Action() { Id = "60605", MenuId = "606", Name = "查看", Code = "Get", CreateUserId = "1", ModifyUserId = "1" });
            
            #endregion

            #region 班组管理
            builder.HasData(new Sys_Action() { Id = "70101", MenuId = "701", Name = "新增", Code = "Add", CreateUserId = "1", ModifyUserId = "1" });
            builder.HasData(new Sys_Action() { Id = "70102", MenuId = "701", Name = "删除", Code = "Delete", CreateUserId = "1", ModifyUserId = "1" });
            builder.HasData(new Sys_Action() { Id = "70103", MenuId = "701", Name = "修改", Code = "Update", CreateUserId = "1", ModifyUserId = "1" });
            builder.HasData(new Sys_Action() { Id = "70104", MenuId = "701", Name = "查询", Code = "Query", CreateUserId = "1", ModifyUserId = "1" });
            builder.HasData(new Sys_Action() { Id = "70105", MenuId = "701", Name = "查看", Code = "Get", CreateUserId = "1", ModifyUserId = "1" });

            builder.HasData(new Sys_Action() { Id = "70201", MenuId = "702", Name = "新增", Code = "Add", CreateUserId = "1", ModifyUserId = "1" });
            builder.HasData(new Sys_Action() { Id = "70202", MenuId = "702", Name = "删除", Code = "Delete", CreateUserId = "1", ModifyUserId = "1" });
            builder.HasData(new Sys_Action() { Id = "70203", MenuId = "702", Name = "修改", Code = "Update", CreateUserId = "1", ModifyUserId = "1" });
            builder.HasData(new Sys_Action() { Id = "70204", MenuId = "702", Name = "查询", Code = "Query", CreateUserId = "1", ModifyUserId = "1" });
            builder.HasData(new Sys_Action() { Id = "70205", MenuId = "702", Name = "查看", Code = "Get", CreateUserId = "1", ModifyUserId = "1" });

            builder.HasData(new Sys_Action() { Id = "70301", MenuId = "703", Name = "新增", Code = "Add", CreateUserId = "1", ModifyUserId = "1" });
            builder.HasData(new Sys_Action() { Id = "70302", MenuId = "703", Name = "删除", Code = "Delete", CreateUserId = "1", ModifyUserId = "1" });
            builder.HasData(new Sys_Action() { Id = "70303", MenuId = "703", Name = "修改", Code = "Update", CreateUserId = "1", ModifyUserId = "1" });
            builder.HasData(new Sys_Action() { Id = "70304", MenuId = "703", Name = "查询", Code = "Query", CreateUserId = "1", ModifyUserId = "1" });
            builder.HasData(new Sys_Action() { Id = "70305", MenuId = "703", Name = "查看", Code = "Get", CreateUserId = "1", ModifyUserId = "1" });
            #endregion

            #region 物料管理
            builder.HasData(new Sys_Action() { Id = "80101", MenuId = "801", Name = "新增", Code = "Add", CreateUserId = "1", ModifyUserId = "1" });
            builder.HasData(new Sys_Action() { Id = "80102", MenuId = "801", Name = "删除", Code = "Delete", CreateUserId = "1", ModifyUserId = "1" });
            builder.HasData(new Sys_Action() { Id = "80103", MenuId = "801", Name = "修改", Code = "Update", CreateUserId = "1", ModifyUserId = "1" });
            builder.HasData(new Sys_Action() { Id = "80104", MenuId = "801", Name = "查询", Code = "Query", CreateUserId = "1", ModifyUserId = "1" });
            builder.HasData(new Sys_Action() { Id = "80105", MenuId = "801", Name = "查看", Code = "Get", CreateUserId = "1", ModifyUserId = "1" });

            builder.HasData(new Sys_Action() { Id = "80201", MenuId = "802", Name = "新增", Code = "Add", CreateUserId = "1", ModifyUserId = "1" });
            builder.HasData(new Sys_Action() { Id = "80202", MenuId = "802", Name = "删除", Code = "Delete", CreateUserId = "1", ModifyUserId = "1" });
            builder.HasData(new Sys_Action() { Id = "80203", MenuId = "802", Name = "修改", Code = "Update", CreateUserId = "1", ModifyUserId = "1" });
            builder.HasData(new Sys_Action() { Id = "80204", MenuId = "802", Name = "查询", Code = "Query", CreateUserId = "1", ModifyUserId = "1" });
            builder.HasData(new Sys_Action() { Id = "80205", MenuId = "802", Name = "查看", Code = "Get", CreateUserId = "1", ModifyUserId = "1" });

            builder.HasData(new Sys_Action() { Id = "80301", MenuId = "803", Name = "新增", Code = "Add", CreateUserId = "1", ModifyUserId = "1" });
            builder.HasData(new Sys_Action() { Id = "80302", MenuId = "803", Name = "删除", Code = "Delete", CreateUserId = "1", ModifyUserId = "1" });
            builder.HasData(new Sys_Action() { Id = "80303", MenuId = "803", Name = "修改", Code = "Update", CreateUserId = "1", ModifyUserId = "1" });
            builder.HasData(new Sys_Action() { Id = "80304", MenuId = "803", Name = "查询", Code = "Query", CreateUserId = "1", ModifyUserId = "1" });
            builder.HasData(new Sys_Action() { Id = "80305", MenuId = "803", Name = "查看", Code = "Get", CreateUserId = "1", ModifyUserId = "1" });
            builder.HasData(new Sys_Action() { Id = "80306", MenuId = "803", Name = "下发", Code = "Assign", CreateUserId = "1", ModifyUserId = "1" });
            #endregion

            #region 系统管理
            builder.HasData(new Sys_Action() { Id = "90101", MenuId = "901", Name = "新增", Code = "Add", CreateUserId = "1", ModifyUserId = "1" });
            builder.HasData(new Sys_Action() { Id = "90102", MenuId = "901", Name = "删除", Code = "Delete", CreateUserId = "1", ModifyUserId = "1" });
            builder.HasData(new Sys_Action() { Id = "90103", MenuId = "901", Name = "修改", Code = "Update", CreateUserId = "1", ModifyUserId = "1" });
            builder.HasData(new Sys_Action() { Id = "90104", MenuId = "901", Name = "查询", Code = "Query", CreateUserId = "1", ModifyUserId = "1" });
            builder.HasData(new Sys_Action() { Id = "90105", MenuId = "901", Name = "查看", Code = "Get", CreateUserId = "1", ModifyUserId = "1" });

            builder.HasData(new Sys_Action() { Id = "90201", MenuId = "902", Name = "新增", Code = "Add", CreateUserId = "1", ModifyUserId = "1" });
            builder.HasData(new Sys_Action() { Id = "90202", MenuId = "902", Name = "删除", Code = "Delete", CreateUserId = "1", ModifyUserId = "1" });
            builder.HasData(new Sys_Action() { Id = "90203", MenuId = "902", Name = "修改", Code = "Update", CreateUserId = "1", ModifyUserId = "1" });
            builder.HasData(new Sys_Action() { Id = "90204", MenuId = "902", Name = "查询", Code = "Query", CreateUserId = "1", ModifyUserId = "1" });
            builder.HasData(new Sys_Action() { Id = "90205", MenuId = "902", Name = "查看", Code = "Get", CreateUserId = "1", ModifyUserId = "1" });
            builder.HasData(new Sys_Action() { Id = "90206", MenuId = "902", Name = "角色", Code = "Role", CreateUserId = "1", ModifyUserId = "1" });

            builder.HasData(new Sys_Action() { Id = "90301", MenuId = "903", Name = "新增", Code = "Add", CreateUserId = "1", ModifyUserId = "1" });
            builder.HasData(new Sys_Action() { Id = "90302", MenuId = "903", Name = "删除", Code = "Delete", CreateUserId = "1", ModifyUserId = "1" });
            builder.HasData(new Sys_Action() { Id = "90303", MenuId = "903", Name = "修改", Code = "Update", CreateUserId = "1", ModifyUserId = "1" });
            builder.HasData(new Sys_Action() { Id = "90304", MenuId = "903", Name = "查询", Code = "Query", CreateUserId = "1", ModifyUserId = "1" });
            builder.HasData(new Sys_Action() { Id = "90305", MenuId = "903", Name = "查看", Code = "Get", CreateUserId = "1", ModifyUserId = "1" });
            builder.HasData(new Sys_Action() { Id = "90306", MenuId = "903", Name = "权限", Code = "Access", CreateUserId = "1", ModifyUserId = "1" });

            builder.HasData(new Sys_Action() { Id = "90401", MenuId = "904", Name = "新增", Code = "Add", CreateUserId = "1", ModifyUserId = "1" });
            builder.HasData(new Sys_Action() { Id = "90402", MenuId = "904", Name = "删除", Code = "Delete", CreateUserId = "1", ModifyUserId = "1" });
            builder.HasData(new Sys_Action() { Id = "90403", MenuId = "904", Name = "修改", Code = "Update", CreateUserId = "1", ModifyUserId = "1" });
            builder.HasData(new Sys_Action() { Id = "90404", MenuId = "904", Name = "查询", Code = "Query", CreateUserId = "1", ModifyUserId = "1" });
            builder.HasData(new Sys_Action() { Id = "90405", MenuId = "904", Name = "查看", Code = "Get", CreateUserId = "1", ModifyUserId = "1" });
            builder.HasData(new Sys_Action() { Id = "90406", MenuId = "904", Name = "操作", Code = "Action", CreateUserId = "1", ModifyUserId = "1" });

            builder.HasData(new Sys_Action() { Id = "90501", MenuId = "905", Name = "新增", Code = "Add", CreateUserId = "1", ModifyUserId = "1" });
            builder.HasData(new Sys_Action() { Id = "90502", MenuId = "905", Name = "删除", Code = "Delete", CreateUserId = "1", ModifyUserId = "1" });
            builder.HasData(new Sys_Action() { Id = "90503", MenuId = "905", Name = "修改", Code = "Update", CreateUserId = "1", ModifyUserId = "1" });
            builder.HasData(new Sys_Action() { Id = "90504", MenuId = "905", Name = "查询", Code = "Query", CreateUserId = "1", ModifyUserId = "1" });
            builder.HasData(new Sys_Action() { Id = "90505", MenuId = "905", Name = "字典值", Code = "Item", CreateUserId = "1", ModifyUserId = "1" });

            builder.HasData(new Sys_Action() { Id = "90601", MenuId = "906", Name = "新增", Code = "Add", CreateUserId = "1", ModifyUserId = "1" });
            builder.HasData(new Sys_Action() { Id = "90602", MenuId = "906", Name = "删除", Code = "Delete", CreateUserId = "1", ModifyUserId = "1" });
            builder.HasData(new Sys_Action() { Id = "90603", MenuId = "906", Name = "修改", Code = "Update", CreateUserId = "1", ModifyUserId = "1" });
            builder.HasData(new Sys_Action() { Id = "90604", MenuId = "906", Name = "查询", Code = "Query", CreateUserId = "1", ModifyUserId = "1" });

            builder.HasData(new Sys_Action() { Id = "90701", MenuId = "907", Name = "新增", Code = "Add", CreateUserId = "1", ModifyUserId = "1" });
            builder.HasData(new Sys_Action() { Id = "90702", MenuId = "907", Name = "删除", Code = "Delete", CreateUserId = "1", ModifyUserId = "1" });
            builder.HasData(new Sys_Action() { Id = "90703", MenuId = "907", Name = "修改", Code = "Update", CreateUserId = "1", ModifyUserId = "1" });
            builder.HasData(new Sys_Action() { Id = "90704", MenuId = "907", Name = "查询", Code = "Query", CreateUserId = "1", ModifyUserId = "1" });
            builder.HasData(new Sys_Action() { Id = "90705", MenuId = "907", Name = "规则", Code = "Item", CreateUserId = "1", ModifyUserId = "1" });
            #endregion

            #endregion
        }
    }
}
